public class Point {
    int value;
    Point next;

    public static int count;
    static {
        count = 0;
    }

    public Point() {
        Point.count += 1;
        this.value = Point.count;
    }
}